package bootstrap

import (
	"github.com/coocood/freecache"
	"zinx_game/core"
	"zinx_game/core/role_manager"
	"zinx_game/global/variable"
)

func Init() {
	core.InitConf()
	go func() {
		core.InitWeb()
	}()
	variable.Log = core.Zap()
	variable.GDb = core.InitDb()
	variable.Cache = freecache.NewCache(1024 * 1024 * 1024)
	variable.RoleManager = role_manager.NewRoleManager()
}
